# -*- coding: utf-8 -*-
# @Time    : 2021/10/16 11:54
# @Author  : super

list1 = [1, 2, 3, 4, 5, 6]

def func(i):
	if i % 2==0:
		return i
print(list(filter(func,list1)))

print(list(filter((lambda i: i if i % 2 == 0 else 1),list1)))